package com.iot.ammeter.model.entry

import androidx.room.Entity
import com.iot.ammeter.model.Payment
import com.iot.ammeter.network.ResponseData

/**
 * 缴费记录
 * @param paymentTime 缴费时间
 * @param paymentAmount 缴费金额
 * @param electricCycleStartTime 用电周期-开始时间
 * @param electricCycleEndTime 用电周期-结束时间
 * @param balanceDeduction 余额抵扣
 * @param payment 支付类型
 * @see Payment
 */
@Entity
data class PaymentRecord(
    val paymentRecordId: String,
    val paymentTime: Long, // timestamp
    val paymentAmount: Float,
    val electricCycleStartTime: Long, // timestamp
    val electricCycleEndTime: Long, // timestamp
    val balanceDeduction: Float,
    val payment: Payment
) : ResponseData
